package org.example.client.controller;

import org.example.api.UserServiceFeign;
import org.example.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ClientController {

    @Autowired
    private UserServiceFeign userService;

    @RequestMapping("/getUsers")
    public List<User> getUsers() {
        return userService.getUsers();
    }

}
